﻿using System.Collections.Generic;
using Abs.Core.DAL.EntityFramework;
using Abs.Core.Models.Blog;

namespace Abs.Core.DAL.SetUpDatabase
{
    internal partial class AbsInitializer
    {
        internal void InitializeCategory(AbsContext absContext)
        {
            var categories = new List<Category>
                             {
                                 new Category {Title = "School Information"},
                                 new Category {Title = "Sports Information"}
                             };
            categories.ForEach(category => absContext.Categories.Add(category));
            absContext.SaveChanges();
        }//end of internal void InitializeCategory(AbsContext absContext)
    }//end of public class AbsIntitializer
}//end of namespace ABS.DAL.SetUpDatabase